package org.embedchat.server.live;

import java.util.Date;

import org.embedchat.entity.User;

public class OnlineUser {
	
	private User user;
	private int messagesSend;
	private Date loginTime;
	
	public OnlineUser(User user) {
		this.user = user;
		this.messagesSend = 0;
		this.loginTime = new Date();
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public int getMessagesSend() {
		return messagesSend;
	}

	public void setMessagesSend(int messagesSend) {
		this.messagesSend = messagesSend;
	}
}
